<?php
/**
 * @author 
 * @copyright 2014
 */
 
class incMenu extends CI_Include
{
	function __construct()
	{
	    parent::__construct();
		$this->load->incModel();
		$data = new stdClass();
		$uri = $this->uri->segment(1);
		$data->uri = $uri;
		$login = $this->load->pub->GetSession('login');
		$groups = $login['groups'];
        $data->menus = $this->model->getList($groups,$uri); 
		$this->load->incView($data);
	}
}